From: Keir Fraser Date: Wed, 14 Oct 2009 07:56:55 +0000 (+0100) Subject: xend: call pci_device_configure on the stubdom X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13231 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=a45c214328817f7b7c800f45ea83955129b0142a;p=xen.git xend: call pci_device_configure on the stubdom Whenever pci_device_configure is called on a guest that has a stubdom, call pci_device_configure on the stubdom as well. Signed-off-by: Stefano Stabellini --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 5c3b1f6c52..fb76b47ca6 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -855,6 +855,13 @@ class XendDomainInfo: dev_config = pci_convert_sxp_to_dict(dev_sxp) dev = dev_config['devs'][0] + dom_list = xstransact.List('/local/domain') + for d in dom_list: + target = xstransact.Read('/local/domain/' + d + '/target') + if target is not None and int(target) is self.domid : + from xen.xend import XendDomain + XendDomain.instance().domain_lookup(int(d)).pci_device_configure(dev_sxp[:]) + # Do HVM specific processing if self.info.is_hvm(): if pci_state == 'Initialising':